package com.hunter.api.help.result;


/**
 * @author Created by lfan on 2020/7/13 11:02
 */
public enum BusinessCode {

    COMFIG_SQL_ERROR("11001", "待执行sql为空"),

    COMFIG_PARAMS_ERROR("11002", "参数不能为空"),

    SQL_TYPE_ERROR("11003", "不是有效的sql类型"),

    SQL_NOT_UNIQUE("11004", "已有重复项了"),

    ENTITY_NOT_EXISTS("12001", "ENTITY不存在"),


    ;


    private String code;
    private String message;

    BusinessCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message=message;
    }
}
